<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>&lt;%GLibFileSetContentsFlags&gt;: </title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
<link rel="home" href="index.html" title="">
<link rel="up" href="ch01.html" title="GLib">
<link rel="prev" href="re16.html" title="&lt;%GLibFileError&gt;">
<link rel="next" href="re18.html" title="&lt;%GLibFileTest&gt;">
<meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
<td><a accesskey="p" href="re16.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="re18.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="id-1.1.18"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>&lt;%GLibFileSetContentsFlags&gt;</h2>
<p>&lt;%GLibFileSetContentsFlags&gt;</p>
</div>
<div class="refsect1">
<a name="id-1.1.18.2"></a><h2>Description</h2>
<p>Flags to pass to <code class="function">g_file_set_contents_full()</code> to affect its safety and
performance.</p>
</div>
<div class="refsect1">
<a name="id-1.1.18.3"></a><h2>Members</h2>
<div class="refsect2">
<a name="id-1.1.18.3.2"></a><h3>none</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_FILE_SET_CONTENTS_NONE</code></span></em></p>
<p>No guarantees about file consistency or durability.
  The most dangerous setting, which is slightly faster than other settings.</p>
</div>
<div class="refsect2">
<a name="id-1.1.18.3.3"></a><h3>consistent</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_FILE_SET_CONTENTS_CONSISTENT</code></span></em></p>
<p>Guarantee file consistency: after a crash,
  either the old version of the file or the new version of the file will be
  available, but not a mixture. On Unix systems this equates to an <code class="code">fsync()</code>
  on the file and use of an atomic <code class="code">rename()</code> of the new version of the file
  over the old.</p>
</div>
<div class="refsect2">
<a name="id-1.1.18.3.4"></a><h3>durable</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_FILE_SET_CONTENTS_DURABLE</code></span></em></p>
<p>Guarantee file durability: after a crash, the
  new version of the file will be available. On Unix systems this equates to
  an <code class="code">fsync()</code> on the file (if <code class="constant">G_FILE_SET_CONTENTS_CONSISTENT</code> is unset), or
  the effects of <code class="constant">G_FILE_SET_CONTENTS_CONSISTENT</code> plus an <code class="code">fsync()</code> on the
  directory containing the file after calling <code class="code">rename()</code>.</p>
</div>
<div class="refsect2">
<a name="id-1.1.18.3.5"></a><h3>only-existing</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_FILE_SET_CONTENTS_ONLY_EXISTING</code></span></em></p>
<p>Only apply consistency and durability
  guarantees if the file already exists. This may speed up file operations
  if the file doesn’t currently exist, but may result in a corrupted version
  of the new file if the system crashes while writing it.</p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.1</div>
</body>
</html>
